<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

class Help extends CI_Controller {
// 帮助中心
    public function __construct() {
        parent::__construct();
        $this->load->helper('url');
       // $this->load->library('topclass');
        $this->load->helper('fuc');
        $this->config->load('topapiconfig');
        $this->load->database();
        $this->load->model('memmbers');
    }

    public function index() {
        redirect("help/intro", 'location');
    }

    public function intro() {
		decis_last_time();
          if (!isset($_SESSION["statue"])) {
				$url = site_url("login/index");
				redirect($url, 'location');
        	}
			
		$data['menu'] = 'intro';
        $sql = "select * from join_memebers";
        $query = $this->db->query($sql);
        $res = $query->result_array();
        $data['members'] = $res;
        $data['userleve'] = $this->memmbers->get_user_level();

        $this->load->view('header_view', $data);
		$this->load->view('intro_view');
		$this->load->view('footer_view');
    }



}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */